//华为云上传
export const hw_auth_url="https://oauth-login.cloud.huawei.com/oauth2/v3/authorize?response_type=code&scope=openid profile email https://www.huawei.com/auth/agc/project&redirect_uri=http://127.0.0.1:5500/index.html&access_type=offline&client_id="
export const hw_app_id="108683107"
export const hw_fetch_at_url='https://connect-api.cloud.huawei.com/api/gpas/user/auth/accesstoken'
export const hw_refresh_at_url='https://connect-api.cloud.huawei.com/api/gpas/user/auth/accesstoken'
export const hw_logout_url='https://oauth-login.cloud.huawei.com/oauth2/v3/revoke?token='
export const hw_user_notification_url='https://connect-api.cloud.huawei.com/api/gpas/test/user/usage-event/report'
export const hw_fetch_team_url='https://connect-api.cloud.huawei.com/api/ups/user-permission-service/v1/user-team-list'
export const hw_fetch_project_url='https://connect-api.cloud.huawei.com/api/project-service/v1/projects'
export const hw_get_upload_info_url='https://connect-api.cloud.huawei.com/api/gpas/game/perf/test/data/upload'
export const hw_upload_complete_url='https://connect-api.cloud.huawei.com/api/gpas/game/perf/test/data/upload/complete'
export const hw_user_info_url='https://account.cloud.huawei.com/rest.php?nsp_svc=GOpen.User.getInfo&getNickName=1'

//凤凰登录baseUrl
export const fhBaseUrl = "https://w3m.huawei.com/"
//测试环境
export const testBaseUrl = "https://devecotesting-service.huawei.com/weekly/"
//内部正式环境
export const interBaseUrl = "https://devecotesting-service.huawei.com/"
//外部正式环境
export const outerBaseUrl = "https://devecotesting.huawei.com/"

export const token = "eyJUeXBlIjoiSnd0IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJleHAiOjE2ODIzOTA3NzEsInVzZXJJZCI6MTAzLCJ0aW1lc3RhbXAiOjE2ODIzOTA3NzEwNjR9.2aSNrzPf-YX8bmMX_aeIPXkudZYCA2vQIR52Grnq4e4"

export const readTimeout = 30000

export const connectTimeout = 30000

export enum NetInterface {
    // TODO 外部用户 WebView登录接口 ("Content-Type: application/x-www-form-urlencoded")
    POST_OUTER_GET_TOKEN = "api/tokens",
    // TODO 获取用户信息
    GET_USER_INFO = "api/current_user",
    // TODO 创建任务
    POST_CREATE_TASK = "api/projects/{projectId}/testtasksvr/task/clientCreateTask",

    POST_UPLOAD = "storage/uploadOriginalFile",
    // TODO 上传任务结果
    POST_UPLOAD_RESULT = "api/projects/{projectId}/testtasksvr/task/uploadTaskResult",
    // 打点
    POST_TRACE = "api/tracker/trace",

    // TODO 凤凰登录     ("Content-Type: application/x-www-form-urlencoded;charset=UTF-8")
    POST_FH_LOGIN = "mcloud/mag/LoginWithSFV2",
    // TODO 凤凰登录 发送验证码 ("Content-Type: application/x-www-form-urlencoded;charset=UTF-8")
    POST_FH_SEF_SUID = "mcloud/mag/GetSFBySuid",

    // 凤凰登录 确认登陆 ("Content-Type: application/x-www-form-urlencoded;charset=UTF-8")
    POST_FH_CONFIRM = "mcloud/mag/ConfirmSFBySuid",

    // 内部获取token
    POST_INTER_GET_TOKEN = "api/sp/tokens",
    // hms获取token
    POST_HMS_GET_TOKEN = "api/sp2/tokens",
    // 鉴权打点 通过
    LICENSE_SUCCESS_TAKE_CARE = "802008110",
    // 鉴权打点 不通过
    LICENSE_FAIL_TAKE_CARE = "802008111",
    // 登录打点
    LOGIN_TAKE_CARE = "806001001",
    // 创建任务打点
    TASK_TAKE_CARE = "806001002",
}